#! /bin/sh
function path_cyg_to_wins(){
 _cygpath=$1
 echo ${_cygpath:10:1}:${_cygpath:11}
}
function android_su_shell(){
 echo adb shell "su0 -c '$1'"
}
function android_fu_shell(){
 echo adb shell "fu -c '$1'"
}

#用shell静态导入jar包
#参数1为主jar包 path
#参数2为要导入jar path
#参数3为生成的路径
function import_static_java_class_file(){
 main_jar_path=$1
 import_jar_path=$2
 gen_target_path=$3
 #这个截取方法有问题
 target_jar_name=${gen_target_path%/*}
 
 tmp_path="./__tmp_class_file"
 #先要解压两个jar包
 mkdir $tmp_path
 unzip -o $main_jar_path -d $tmp_path
 unzip -o $import_jar_path -d $tmp_path
 #exit 1
 cd $tmp_path
 jar cvf $target_jar_name *
 mv -f $target_jar_name ../$gen_target_path
 cd ..
 rm -R $tmp_path
 #mkdir $tmp_path
 
}

#用shell静态导入jar包
#参数1为由源代码生成的class文件的根path
#参数2为要导入jar path
#参数3为生成的路径
function import_static_java_class_file_in_build_env(){
	echo "xxxx"
}
